<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1, user-scalable=0, minimal-ui" charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/index.css" />
		<link rel="stylesheet" href="css/swiper.css" />
		<link rel="stylesheet" href="css/mint.css">
		<link rel="stylesheet" href="css/mint-style.css">
		 <script src="js/vue_resource.js"></script>
	</head>
		<script src="js/serverUrl.js"></script>
		<script src="js/vue.js"></script>
		<script src="js/mint.js"></script>
		<script src="js/moment.js"></script>
		<style type="text/css">
			.conclusionContainer{
				display: flex;
				flex-direction: column;
				width: 100vw;
				background: white;
			}
			.detailTitle{
				width: 100vw;
				display: flex;
				justify-content: center;
				font-size: 18px;
				padding-top: 5px;
				padding-bottom: 5px;
			}
			
			.infoContainer{
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding-left: 15px;
				padding-right: 15px;
				font-size: 16px;
				padding-top: 10px;
				padding-bottom: 10px;
				border-top: 1px solid #e0e0e0;
			}
			.content{
				font-size: 14px;
				background-color: #f0f0f0;
				margin:0px 10px 10px 10px;
				padding: 5px;
				border-radius: 5px;
				white-space: pre-line;
			}

		</style>
	<body style="background-color: #f0f0f0;">
		<div id="app">
			<div class="conclusionContainer">
				<div class="detailTitle">{{trainingClass.trainingClassName}}</div>
				<div class="infoContainer" v-if="trainingClass.trainingType !=1">
					<span v-if="trainingClass.trainingType !=2">培训题目</span> 
					<span v-if="trainingClass.trainingType ==2">活动简题</span> 
					<span>{{trainingClass.trainingTitle}}</span>
				</div>
				<div class="infoContainer"><span>学习时间</span> <span>{{trainingClass.createTime| formatTime}}</span></div>
				<div class="infoContainer" style="border-top: 0px solid #e0e0e0;"><span></span> <span>{{trainingClass.endTime| formatTime}}</span></div>
				<div class="infoContainer"><span>培训部门</span> <span>{{trainingClass.departmentName}}</span></div>
				<div class="infoContainer"><span>培训负责人</span> <span>{{trainingClass.teacherName}}</span></div>
				
			</div>
			
			<div class="conclusionContainer">
				<div class="infoContainer">内容</div>
				<div class="content" style="min-height: 100px;">{{trainingClass.content}}</div>
                <div v-if="trainingClass.fileList.length>2" class="infoContainer" @click.stop="toFileList()"><span>培训资料</span> <span><img class="arrow" src="img/right_arrow.png"/></span></div>
			</div>
		
		
			<div class="conclusionContainer" style="margin-top: 15px;">
				<div class="infoContainer" v-if="trainingClass.trainingType ==1">总结</div>
				<div class="infoContainer" v-if="trainingClass.trainingType ==2">发现本班（站）存在的问题及应采取的措施</div>
				<div class="infoContainer" v-if="trainingClass.trainingType ==3">评价</div>
				<div class="content" style="min-height: 100px;">{{trainingClass.conclusion}}</div>
			</div>
			
			<div class="conclusionContainer"  v-if="trainingClass.trainingType !=1" style="margin-top: 15px;">
				<div class="infoContainer" v-if="trainingClass.trainingType ==2">已制定的安全措施落实情况</div>
				<div class="infoContainer" v-if="trainingClass.trainingType !=2">评价</div>
				<div class="content" style="min-height: 100px;">{{trainingClass.trainingResult}}</div>
			</div>
			
			<div class="conclusionContainer">
				<div class="infoContainer" >现场照片</div>
				<div class="gally" style="margin-top: 10px;">
					<div class="photoConatiner"  v-for="(item,index) in trainingClass.trainingImage">
						<img class="image" :style="{'margin-top': (index>2?'6vw':'0px')}"  :src="serverUrl+item" />
					  
					</div>
					
				</div>
			</div>
				
			
		</div>
	</body>
	
	<script type="text/javascript">
		var app = new Vue({
		  el: '#app',
		  data:{
			  trainingClass: {
			  },
		  },
		  filters:{
			  formatTime (val) {
				return moment(val).format("HH:mm")  
			  }
		  },
		  created() {
              window.getTrainingClass = this.getTrainingClass
		  },
		  methods:{
			  getTrainingClass (trainingClass){
				this.trainingClass = trainingClass
                this.trainingClass.trainingImage = JSON.parse(trainingClass.trainingImage)
			  },
              toFileList () {
                  let params = {
                      fileList:this.trainingClass.fileList
                  }
                  
                  WebViewJavascriptBridge.callHandler('toFileList',params,function(response) {
                                        
                  });
              },
			  toNewsDetail (dataId){
				alert(dataId)  
			  }
		  }
		})		
		</script>
</html>
